package com.itheima.demo1;

public class Demo1 {
    public static void main(String[] args) {
        new Animal(){
            @Override
            public void eat() {
                System.out.println("猫吃鱼");
            }
        }.eat();
    }
}
